{extend name="/public/admin" /}
{block name="main"}
	<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">
		<div class="row">
			<ol class="breadcrumb">
				<li><a href="/59a3albvcwco"><span class="glyphicon glyphicon-home"></span></a></li>
				<li>商品管理</li>
				<li class="active">商品添加</li>
			</ol>
		</div><!--/.row-->

		<div class="row" style="margin-top: 1em;">
			<div class="col-lg-12">
				<div class="panel panel-default">
					<div class="panel-heading">商品添加</div>
					<div class="panel-body">
						<div class="col-md-12">
							<form id="food_add" enctype="multipart/form-data">
								<div class="form-group">
									<label>商品图片</label>
									<input id="input-b3" name="food_img" type="file" class ="file" multiple
										   data-show-upload="false" accept="image/gif,image/jpeg,image/x-png"
										   data-show-caption="true" data-msg-placeholder ="选择图片上传...">
								</div>
								<div class="form-group">
									<label>商品名称</label>
									<input type="text" name="food_name" class="form-control" placeholder="请输入商品名称">
								</div>
								<div class="form-group">
									<label>商品所属分类</label>
									<select id="food_classification" class="form-control">
										{volist name="classificationData" id="vo"}
										<option value="{$vo.id}">{$vo._classification_name}</option>
										{/volist}
									</select>
								</div>
								<div class="form-group">
									<label>商品价格</label>
									<input type="text" name="food_price" class="form-control" placeholder="请输入商品价格">
								</div>
								<div class="form-group">
									<label>商品描述</label>
									<textarea id="food_des" class="form-control" rows="4"></textarea>
								</div>
							</form>
							<button type="submit" id="food_add_submit" class="btn btn-primary">提交</button>
							<a href="#" class="btn btn-default" onClick="javaScript:history.go(-1)">返回</a>
						</div>
					</div>
				</div>
			</div><!-- /.col-->
		</div>
	</div>	<!--/.main-->
{/block}
